<?php
/**
* Creates a checkbox input
*/
class CheckBox extends input
{
    function CheckBox($id=NULL, $checked = NULL , $value='checked', $class=NULL, $label=NULL)
    {
        parent::input($id , 'checkbox',$class, $label);
        $this->addAttribute('value', $value);
        $this->addAttribute('checked', $checked);
    }
}
?>